package system

import (
	"github.com/google/uuid"
	"mycms/model/system"
)

type SysAdminResponse struct {
	Admin system.Admin `json:"user"`
}

type AdminLoginResponse struct {
	Uuid      uuid.UUID `json:"uuid"`
	Username  string    `json:"username"`
	Token     string    `json:"token"`
	ExpiresAt int64     `json:"expiresAt"`
}

// 获取用户信息返回
type AdminInfoResponse struct {
	Id       uint      `json:"id" form:"id"`
	Uuid     uuid.UUID `json:"uuid"  form:"uuid"`
	Username string    `json:"username" form:"username"`
	Password string    `json:"password" form:"password"`
	Realname string    `json:"realname" form:"realname"`
	Status   uint      `json:"status" form:"status"`
	Avatar   string    `json:"avatar" form:"avatar"`
	Phone    string    `json:"phone" form:"phone"`
	Email    string    `json:"email" form:"email"`
	Remark   string    `json:"remark" form:"remark"`
	Roles    []int     `json:"roles" form:"roles"`
}

// 管理员列表返回
type AdminListResponse struct {
	Id        uint     `json:"id"`
	Username  string   `json:"username" form:"username" `
	Realname  string   `json:"realname" form:"realname" `
	Phone     string   `json:"phone" form:"phone" `
	Email     string   `json:"email" form:"email" `
	Status    uint     `json:"status" form:"status" `
	CreatedAt string   `json:"created_at" form:"created_at" `
	Remark    string   `json:"remark" form:"remark" `
	Avatar    string   `json:"avatar" form:"avatar" `
	RolesName []string `json:"roles_name" form:"roles_name" `
}
